package com.ruoyi.cms.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 栏目信息对象 cms_channel
 *
 * @author ruoyi
 * @date 2021-07-30
 */
@ApiModel("栏目信息对象")
public class CmsChannel extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 栏目ID */
    @ApiModelProperty(value = "栏目ID")
    private Long channelId;

    /** 站点ID */
    @ApiModelProperty(value = "站点ID")
    private Long siteId;

    /** 模型ID */
    @ApiModelProperty(value = "模型ID")
    private Long modelId;

    /** 栏目名称 */
    @ApiModelProperty(value = "栏目名称")
    @Excel(name = "栏目名称")
    private String channelName;

    /** 导航显示（0显示 1隐藏） */
    @ApiModelProperty(value = "导航显示（0显示 1隐藏）")
    @Excel(name = "导航显示", readConverterExp = "0=显示,1=隐藏")
    private String navFlag;

    /** 栏目排序 */
    @ApiModelProperty(value = "栏目排序")
    @Excel(name = "栏目排序")
    private Integer ord;

    /** 状态（0正常 1停用） */
    @ApiModelProperty(value = "状态（0正常 1停用）")
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    @ApiModelProperty(value = "删除标志（0代表存在 2代表删除）")
    private String delFlag;

    /** 模型名称 */
    @ApiModelProperty(value = "模型名称")
    @Excel(name = "模型名称")
    private String modelName;

    /** 模型类别（1内容模型 2表单模型） */
    @ApiModelProperty(value = "模型类别（1内容模型 2表单模型）")
    @Excel(name = "模型类别", readConverterExp = "1=内容模型,2=表单模型")
    private String modelType;

    public String getModelType() {
        return modelType;
    }

    public void setModelType(String modelType) {
        this.modelType = modelType;
    }

    public String getModelName() {
        return modelName;
    }

    public void setModelName(String modelName) {
        this.modelName = modelName;
    }

    public void setChannelId(Long channelId)
    {
        this.channelId = channelId;
    }

    public Long getChannelId()
    {
        return channelId;
    }
    public void setSiteId(Long siteId)
    {
        this.siteId = siteId;
    }

    public Long getSiteId()
    {
        return siteId;
    }
    public void setModelId(Long modelId)
    {
        this.modelId = modelId;
    }

    public Long getModelId()
    {
        return modelId;
    }
    public void setChannelName(String channelName)
    {
        this.channelName = channelName;
    }

    public String getChannelName()
    {
        return channelName;
    }
    public void setNavFlag(String navFlag)
    {
        this.navFlag = navFlag;
    }

    public String getNavFlag()
    {
        return navFlag;
    }
    public void setOrd(Integer ord)
    {
        this.ord = ord;
    }

    public Integer getOrd()
    {
        return ord;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("channelId", getChannelId())
            .append("siteId", getSiteId())
            .append("modelId", getModelId())
            .append("parentId", getParentId())
            .append("ancestors", getAncestors())
            .append("channelName", getChannelName())
            .append("navFlag", getNavFlag())
            .append("ord", getOrd())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
